.class Lcom/instagram/android/fragment/af;
.super Lcom/instagram/android/d/k/l;
.source "ChangePasswordFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/k/l",
        "<",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/fragment/z;


# direct methods
.method constructor <init>(Lcom/instagram/android/fragment/z;)V
    .locals 0
    .parameter

    .prologue
    .line 217
    iput-object p1, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-direct {p0}, Lcom/instagram/android/d/k/l;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 220
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0}, Lcom/instagram/android/fragment/z;->d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setEnabled(Z)V

    .line 221
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0}, Lcom/instagram/android/fragment/z;->d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->saving:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 222
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0, v2}, Lcom/instagram/android/fragment/z;->a(Lcom/instagram/android/fragment/z;Z)V

    .line 223
    return-void
.end method

.method protected a(Landroid/content/Context;Lcom/instagram/android/d/k/m;)V
    .locals 5
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/instagram/android/d/k/m",
            "<",
            "Ljava/lang/Void;",
            ">;)V"
        }
    .end annotation

    .prologue
    const/4 v4, 0x1

    .line 234
    invoke-super {p0, p1, p2}, Lcom/instagram/android/d/k/l;->a(Landroid/content/Context;Lcom/instagram/android/d/k/m;)V

    .line 236
    invoke-virtual {p2}, Lcom/instagram/android/d/k/m;->h()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 237
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 239
    invoke-virtual {p2}, Lcom/instagram/android/d/k/m;->h()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 240
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/16 v3, 0xa

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 243
    :cond_0
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/instagram/android/d/k/m;->a(Ljava/lang/String;)V

    .line 249
    :goto_1
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/z;->m()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-virtual {p2}, Lcom/instagram/android/d/k/m;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2}, Lcom/instagram/android/d/k/m;->c()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v0, v1, v2, v3}, Lcom/instagram/android/d/i/a;->a(Landroid/support/v4/app/r;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0}, Lcom/instagram/android/fragment/z;->d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setEnabled(Z)V

    .line 253
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0}, Lcom/instagram/android/fragment/z;->d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->crop_text_save:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 254
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0, v4}, Lcom/instagram/android/fragment/z;->a(Lcom/instagram/android/fragment/z;Z)V

    .line 255
    return-void

    .line 245
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    sget v1, Lcom/facebook/ba;->unknown_error_occured:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/z;->b(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/instagram/android/d/k/m;->a(Ljava/lang/String;)V

    goto :goto_1
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 217
    check-cast p1, Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/instagram/android/fragment/af;->a(Ljava/lang/Void;)V

    return-void
.end method

.method protected a(Ljava/lang/Void;)V
    .locals 2
    .parameter

    .prologue
    .line 227
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v0}, Lcom/instagram/android/fragment/z;->d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->password_changed:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 228
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-static {v1}, Lcom/instagram/android/fragment/z;->e(Lcom/instagram/android/fragment/z;)Landroid/widget/EditText;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 229
    iget-object v0, p0, Lcom/instagram/android/fragment/af;->a:Lcom/instagram/android/fragment/z;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/z;->v()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 230
    return-void
.end method
